Automattic\WooCommerce\Blocks\BlockTemplatesController B

Total Complexity 93
Dependencies 6
Dependents 1
Total lines 579
Lines of code 325
Logical lines of code 174
Comment lines 181
Methods 15
Properties 3

Methods 15

Method Rating Maintainability Complexity Lines of code
render_block_template()
B
44 23 41
add_block_templates()
B
40 19 57
get_block_templates_from_woocommerce()
A
43 11 50
get_block_file_template()
A
47 8 34
get_block_template_fallback()
S
47 5 37
remove_block_template_support_for_shop_page()
S
60 6 13
get_block_templates_from_db()
S
52 3 25
check_should_use_blockified_product_grid_templates()
S
64 4 10
__construct()
S
63 3 9
block_template_is_available()
S
65 3 9
add_archive_product_to_eligible_for_fallback_templates()
S
61 2 14
init()
S
61 2 11
get_templates_directory()
S
72 2 6
get_block_templates()
S
70 1 6
get_template_path_from_woocommerce()
S
78 1 3